@extends('layout.admin.master')
@section('content')
    <div class="card">
        <div class="card-header">

            <h4 class="card-header-title">
                基本配置
            </h4>
        </div>
        <div class="card-body">
            <form action="{{route('admin.config.update',['name'=>$name])}}" method="post">
                @csrf
               <div class="form-group">
                    <label for="exampleInputEmail1">驱动(DRIVER)</label>
                    <div class="input-group mb-3">
                        <input type="text" class="form-control" id="exampleInputEmail1" name="DRIVER" value="{{cache_config('email.DRIVER')}}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">主机(HOST)</label>
                    <div class="input-group mb-3">
                        <input type="text" class="form-control" id="exampleInputEmail1" name="HOST" value="{{cache_config('email.HOST')}}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">端口(PORT)</label>
                    <div class="input-group mb-3">
                        <input type="text" class="form-control" id="exampleInputEmail1" name="PORT" value="{{cache_config('email.PORT')}}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">登陆账号(USERNAME)</label>
                    <div class="input-group mb-3">
                        <input type="text" class="form-control" id="exampleInputEmail1" name="USERNAME" value="{{cache_config('email.USERNAME')}}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">密码(PASSWORD)</label>
                    <div class="input-group mb-3">
                        <input type="text" class="form-control" id="exampleInputEmail1" name="PASSWORD" value="{{cache_config('email.PASSWORD')}}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">加密方式(tls)</label>
                    <div class="input-group mb-3">
                        <input type="text" class="form-control" id="exampleInputEmail1" name="tls" value="{{cache_config('email.tls')}}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">回信地址(ADDRESS)</label>
                    <div class="input-group mb-3">
                        <input type="text" class="form-control" id="exampleInputEmail1" name="ADDRESS" value="{{cache_config('email.ADDRESS')}}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">邮件发送者(NAME)</label>
                    <div class="input-group mb-3">
                        <input type="text" class="form-control" id="exampleInputEmail1" name="NAME" value="{{cache_config('email.NAME')}}">
                    </div>
                </div>
                <button type="submit" class="btn btn-primary">保存数据</button>
            </form>

        </div>
    </div>
@endsection
